<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/style.css">
</head>
<body>
    <main>
        <!-- <div class="tabsbox" id="tab"> -->
          <!-- <nav class="tab-title">
            <ul>
              <li class="liactive">
                <span>测试1</span><span class="close">×</span
                ><span class="edit">改</span>
              </li>
              <li>
                <span>测试2</span><span class="close">×</span
                ><span class="edit">改</span>
              </li>
              <li>
                <span>测试3</span><span class="close">×</span
                ><span class="edit">改</span>
              </li>
            </ul>

            <div class="tabadd">
              <span>+</span>
            </div>
          </nav> -->
  
          <!-- <div class="tab-content">
            <section class="conactive">测试1</section>
            <section>测试2</section>
            <section>测试3</section>
          </div> -->
        <!-- </div> -->
  
        <div class="two"></div>
  
       
      </main>
    <!-- <div class="two"></div> -->
    <script src="./js/tab.js"></script>
    <script>
        console.log(Tab);
        new Tab(".two",
            [
            {title:'新闻', content: '这是一条新闻', active: true}, 
            {title:'体育', content: '这是一条体育新闻'}
        ]);
    </script>
</body>
</html>